#ifndef CMDPROCESS_H
#define CMDPROCESS_H

#include <QObject>
#include <QProcess>

class cmdProcess : public QProcess
{
    Q_OBJECT
public:
    explicit cmdProcess(QObject *parent = nullptr);
    ~cmdProcess();
    void run(QStringList cmdList);//每次运行会杀死之前进程，并且重新运行新的cmd指令
    void clearCmd();



signals:
    void executeSucc();
    void executeFaild();

private:
    QStringList m_cmdList;
    QVector<qint64> pidList;

};



#endif // CMDPROCESS_H
